Objects > The object API > objectTag()

 

objectTag()

Description

Inserts a string of code into the user's document.

Arguments

None.

Returns

The string to be inserted.

Example

The following instance of objectTag() inserts an OBJECT/EMBED combination for a specific ActiveX control and plug-in:

function objectTag() {
return '\n' +
'<OBJECT CLASSID="clsid:166F1OOB-3A9R-11FB-8075444553540000" \n' +
'CODEBASE="http://www.mysite.com/product/cabs/myproduct.cab#version=1,0,0,0" \n' +
'NAME="MyProductName"> \n' +
'<PARAM NAME="SRC" VALUE=""> \n' +
'<EMBED SRC="" HEIGHT="" WIDTH="" NAME="MyProductName"> \n' +
'</OBJECT>'
}